<?php
echo "<tr>";
echo "<td>Depuis le : " . $ads->getDateTimeObject('created_at')->format('d M Y H:m') . "</td>";
echo "<td>";

echo "<a  target='blank'  href='" .  url_for('@adsDetail?subcat='. Doctrine_Inflector::urlize($ads->SubCategory->title). '&slug='.$ads->slug) . "' title='" . sfOutputEscaper::unescape($ads->title) . "'>";

if( $ads->image_path1 != ''):
    echo image_tag('/uploads/image_path1/' . $ads->image_path1, array("class"=>"img_ads_thumb shadow", "width"=>"120", "height"=>"100"));
else:
    echo image_tag('no_image.jpg', array("class"=>"img_ads_thumb shadow", "width"=>"120", "height"=>"100"));
endif; 

echo "</a>";

echo "</td>"; 
echo "<td>" . sfOutputEscaper::unescape($ads->title) . "</td>";
//echo "<td class='price'>" . $ads->price . '&nbsp;' . sfConfig::get('app_currency') . "</td>";
echo "<td class='price'>" .str_replace(',00', '', format_currency($ads->price, sfConfig::get('app_currency'), 'fr_FR') )  . "</td>";;
echo "<td>" . $ads->Town->title . "</td>";
echo "</tr>";